DataCollection | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / FilterAsync Method / FilterAsync<T>(IDataCollection<T>,String,Boolean,Boolean,Boolean,Boolean) Method
The data collection.
The query string to be filtered.
if set to true treat spaces as and operator.
if set to true it will look into numeric fields.
If set to true the case will be taken into account.
If set to true the whole word will have to be matched.

In This Topic
    FilterAsync<T>(IDataCollection<T>,String,Boolean,Boolean,Boolean,Boolean) Method
    In This Topic
    Filters the data from a query string.
    Syntax
    'Declaration
     
    Public Overloads Shared Function FilterAsync(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal query As String, _
       Optional ByVal treatSpacesAsAndOperator As Boolean, _
       Optional ByVal matchNumbers As Boolean, _
       Optional ByVal matchCase As Boolean, _
       Optional ByVal matchWholeWord As Boolean _
    ) As Task
    public static Task FilterAsync<T>( 
       IDataCollection<T> dataCollection,
       string query,
       bool treatSpacesAsAndOperator,
       bool matchNumbers,
       bool matchCase,
       bool matchWholeWord
    )
    where T: class

    Parameters

    dataCollection
    The data collection.
    query
    The query string to be filtered.
    treatSpacesAsAndOperator
    if set to true treat spaces as and operator.
    matchNumbers
    if set to true it will look into numeric fields.
    matchCase
    If set to true the case will be taken into account.
    matchWholeWord
    If set to true the whole word will have to be matched.

    Type Parameters

    T
    See Also